﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Com.Toook.ParseHtml.Entity
{
    public class PageRule
    {
        /// <summary>
        /// 当前分页Url
        /// </summary>
        public string CurrentPageUrl;
        /// <summary>
        /// 下一页Url
        /// </summary>
        public string NextPageUrl;

        /// <summary>
        /// 不规则的分类页面URL列表
        /// </summary>
        public List<string> SpecialUrl = null;
        
        /// <summary>
        /// 按顺序增长的开始序号
        /// </summary>
        public int StartNum;
        /// <summary>
        /// 最大页数
        /// </summary>
        public int MaxNum;
        
        /// <summary>
        /// 基地址
        /// </summary>
        public string BaseUrl;
        
        /// <summary>
        /// 分页开始字符串
        /// </summary>
        public string StartStr;
        
        /// <summary>
        /// 分页结束字符串
        /// </summary>
        public string EndStr;

        /// <summary>
        /// 分页序号增长规则
        /// </summary>
        public PageType PageType;
        /// <summary>
        /// 获取下一页Url的规则
        /// </summary>
        public Rule NextPageRule = new Rule();
    }
}
